<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理员登陆</title>
<%@include file="../common/header.jsp"%>
	<script type="text/javascript">
		$(function (){
			$("#codeBtn").click(function (){
				this.src = "${basePath}/Kaptcha.jpg?d="+new Date();
			});
		});
	</script>
<style type="text/css">
	.login_form{
		height:420px;
		margin-top: 25px;
	}
	
</style>
</head>
<body>
		<div id="login_header">
			<img class="logo_img" alt="" src="static/img/logo.png" >
		</div>
		
			<div class="login_banner">
			
				<div id="l_content">
					<span class="login_word">欢迎登陆</span>
				</div>
				
				<div id="content">
					<div class="login_form">
						<div class="login_box">
							<div class="tit">
								<h1>管理员登陆</h1>
								<span class="errorMsg">${requestScope.msg}</span>
							</div>
							<div class="form">
								<form action="managerServlet">
									<input type="hidden" name="action" value="login">
									<label>用户名称：</label>
									<input class="itxt" type="text" placeholder="请输入用户名" autocomplete="off" tabindex="1" name="username" id="username"
											value="${requestScope.username}"	/>
									<br />
									<br />
									<label>用户密码：</label>
									<input class="itxt" type="password" placeholder="请输入密码" autocomplete="off" tabindex="1" name="password" id="password" />
									<br />
									<br />
									<label>验证码：</label>
									<input class="itxt" type="text" style="width: 110px;" id="code" name="code"/>
									<img id="codeBtn" src="http://localhost:8080/classroom/Kaptcha.jpg" style="float: right; margin-right: 40px ; height:30px ; width: 100px ">
									<br />
									<br />
									<input type="submit" value="登陆" id="sub_btn" />
								</form>
							</div>
							
						</div>
					</div>
				</div>
			</div>
		<%@include file="../common/footer.jsp"%>
</body>
</html>